home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh
- # Shell script to bundle groups of files for VMS systems.
- # Uses the MANIFEST file created by the makekit program to determine the
- # contents of each bundle, so you must make Unix bundles first.
-
- i=1
- while true
- do
- a=`fgrep " $i " MANIFEST | awk '{ print $1 }' `
- if [ -z "$a" ]
- then
- exit 0
- fi
- echo Making kit $i
- if [ $i -lt 10 ]
- then
- outf=TEXSIS"0$i".COM
- else
- outf=TEXSIS${i}.COM
- fi
- echo \
- "\$! === THIS IS AN ARCHIVE FILE -- DELETE EVERYTHING ABOVE THIS LINE ===" \
- > $outf
- echo "\$! === THEN EXECUTE THIS FILE WITH \"@$outf\" ===" >> $outf
- echo "\$! Contents:" >> $outf
- for f in $a
- do
- echo "\$! $f" >> $outf
- done
- for f in $a
- do
- echo "\$! =========== $f ============" >> $outf
- echo "\$ copy sys\$input $f" >> $outf
- sed -e '/^\$/s/^\$/ \$/' $f >> $outf
- done
- i=`expr $i + 1`
- done
-
-